﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020012B3 RID: 4787
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SwordTrainingSetSkillTraceScRsp : IMessage<SwordTrainingSetSkillTraceScRsp>, IMessage, IEquatable<SwordTrainingSetSkillTraceScRsp>, IDeepCloneable<SwordTrainingSetSkillTraceScRsp>, IBufferMessage
	{
		// Token: 0x17003C92 RID: 15506
		// (get) Token: 0x0600D68D RID: 54925 RVA: 0x00240519 File Offset: 0x0023E719
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SwordTrainingSetSkillTraceScRsp> Parser
		{
			get
			{
				return SwordTrainingSetSkillTraceScRsp._parser;
			}
		}

		// Token: 0x17003C93 RID: 15507
		// (get) Token: 0x0600D68E RID: 54926 RVA: 0x00240520 File Offset: 0x0023E720
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SwordTrainingSetSkillTraceScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003C94 RID: 15508
		// (get) Token: 0x0600D68F RID: 54927 RVA: 0x00240532 File Offset: 0x0023E732
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SwordTrainingSetSkillTraceScRsp.Descriptor;
			}
		}

		// Token: 0x0600D690 RID: 54928 RVA: 0x00240539 File Offset: 0x0023E739
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SwordTrainingSetSkillTraceScRsp()
		{
		}

		// Token: 0x0600D691 RID: 54929 RVA: 0x00240541 File Offset: 0x0023E741
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SwordTrainingSetSkillTraceScRsp(SwordTrainingSetSkillTraceScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.skillId_ = other.skillId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D692 RID: 54930 RVA: 0x00240572 File Offset: 0x0023E772
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SwordTrainingSetSkillTraceScRsp Clone()
		{
			return new SwordTrainingSetSkillTraceScRsp(this);
		}

		// Token: 0x17003C95 RID: 15509
		// (get) Token: 0x0600D693 RID: 54931 RVA: 0x0024057A File Offset: 0x0023E77A
		// (set) Token: 0x0600D694 RID: 54932 RVA: 0x00240582 File Offset: 0x0023E782
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003C96 RID: 15510
		// (get) Token: 0x0600D695 RID: 54933 RVA: 0x0024058B File Offset: 0x0023E78B
		// (set) Token: 0x0600D696 RID: 54934 RVA: 0x00240593 File Offset: 0x0023E793
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SkillId
		{
			get
			{
				return this.skillId_;
			}
			set
			{
				this.skillId_ = value;
			}
		}

		// Token: 0x0600D697 RID: 54935 RVA: 0x0024059C File Offset: 0x0023E79C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SwordTrainingSetSkillTraceScRsp);
		}

		// Token: 0x0600D698 RID: 54936 RVA: 0x002405AA File Offset: 0x0023E7AA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SwordTrainingSetSkillTraceScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.SkillId == other.SkillId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D699 RID: 54937 RVA: 0x002405E8 File Offset: 0x0023E7E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.SkillId != 0U)
			{
				num ^= this.SkillId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D69A RID: 54938 RVA: 0x00240640 File Offset: 0x0023E840
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D69B RID: 54939 RVA: 0x00240648 File Offset: 0x0023E848
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D69C RID: 54940 RVA: 0x00240654 File Offset: 0x0023E854
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.SkillId != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.SkillId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D69D RID: 54941 RVA: 0x002406B0 File Offset: 0x0023E8B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.SkillId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SkillId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D69E RID: 54942 RVA: 0x00240708 File Offset: 0x0023E908
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SwordTrainingSetSkillTraceScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.SkillId != 0U)
			{
				this.SkillId = other.SkillId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D69F RID: 54943 RVA: 0x00240758 File Offset: 0x0023E958
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D6A0 RID: 54944 RVA: 0x00240764 File Offset: 0x0023E964
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 48U)
				{
					if (num != 64U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.SkillId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040055A0 RID: 21920
		private static readonly MessageParser<SwordTrainingSetSkillTraceScRsp> _parser = new MessageParser<SwordTrainingSetSkillTraceScRsp>(() => new SwordTrainingSetSkillTraceScRsp());

		// Token: 0x040055A1 RID: 21921
		private UnknownFieldSet _unknownFields;

		// Token: 0x040055A2 RID: 21922
		public const int RetcodeFieldNumber = 8;

		// Token: 0x040055A3 RID: 21923
		private uint retcode_;

		// Token: 0x040055A4 RID: 21924
		public const int SkillIdFieldNumber = 6;

		// Token: 0x040055A5 RID: 21925
		private uint skillId_;
	}
}
